package com.bfly.mall.wechat.mp.dto;

import java.io.Serializable;
import java.util.List;

/**
 * 微信公众号用户同步返回结果
 * @author 长沙商脉科技有限公司
 * @date 2021/1/5 19:47
 */
public class WeChatMpUserSynResponse implements Serializable {

    private static final long serialVersionUID = 8401881080659987926L;

    /**
     * 关注该公众账号的总用户数
     * @author 长沙商脉科技有限公司
     * @date 2021/1/5 19:47
     */
    private long total;

    /**
     * 用户所在城市
     * @author 长沙商脉科技有限公司
     * @date 2020/11/12 15:36
     */
    private String city;

    /**
     * 拉取的OPENID个数，最大值为10000
     * @author 长沙商脉科技有限公司
     * @date 2021/1/5 19:48
     */
    private long count;

    /**
     * 拉取列表的最后一个用户的OPENID
     * @author 长沙商脉科技有限公司
     * @date 2021/1/5 19:49
     */
    private String next_openid;

    /**
     *
     * @author 长沙商脉科技有限公司
     * @date 2021/1/5 19:48
     */
    private int gender;
    private OpenId data;

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public long getCount() {
        return count;
    }

    public void setCount(long count) {
        this.count = count;
    }

    public String getNext_openid() {
        return next_openid;
    }

    public void setNext_openid(String next_openid) {
        this.next_openid = next_openid;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public OpenId getData() {
        return data;
    }

    public void setData(OpenId data) {
        this.data = data;
    }

   public class OpenId implements Serializable{
        private static final long serialVersionUID = 4117762717206207541L;

        private List<String> openid;

        public List<String> getOpenid() {
            return openid;
        }

        public void setOpenid(List<String> openid) {
            this.openid = openid;
        }
    }
}
